module.exports = {
  apps: [{
    name: 'API',
    script: 'app.js',
    watch: '.',
    error_file: "./logs/error.log", //错误输出日志
    out_file: "./logs/out.log", //日志
    log_date_format: "YYYY-MM-DD HH:mm Z" //日期格式
  }],

  // deploy: {
  //   production: {
  //     user: 'SSH_USERNAME',
  //     host: 'SSH_HOSTMACHINE',
  //     ref: 'origin/master',
  //     repo: 'GIT_REPOSITORY',
  //     path: 'DESTINATION_PATH',
  //     'pre-deploy-local': '',
  //     'post-deploy': 'npm install && pm2 reload ecosystem.config.js --env production',
  //     'pre-setup': ''
  //   }
  // }
};